<?php


namespace App\Validate;

/**
 * Class AdminValidate
 * @package App\Validate
 * author:fhc
 * desc:后台验证器
 * created_at: {2020/10/16}----10:21 上午
 */
class AdminValidate extends BaseValidate
{
    protected $rule = [
        'username'=>'required|exists_data:admin,username,id',
        'password'=>'required'
    ];


    protected $message = [
        'username.required'=>'请填写账号',
        'username.exists_data'=>'账号不存在',
        'password.required'=>'请填写密码'
    ];


    protected $scene = [
        'login'=>'username,password'
    ];
}
